package com.example.model.article.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.model.common.annotation.IdEncrypt;
import lombok.Data;

import java.util.Date;

@Data
@TableName("ap_user_collection")
public class ApUserCollection {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("userId")
    private Integer userId;

    @TableField("articleId")
    @IdEncrypt
    private Long articleId;

    @TableField("createdTime")
    private Date createdTime;
}
